package com.taikang.util;

/**
 * Created by zhai on 15/12/24.
 */

import javax.servlet.http.HttpServletRequest;

public class SessionValidator {

    public static final ThreadLocal<HttpServletRequest> requestContext = new ThreadLocal<HttpServletRequest>();

    public static void setRequestContext(HttpServletRequest request) {
        requestContext.set(request);
    }

    public static HttpServletRequest getRequestContext() {
        return requestContext.get();
    }
}